from deepdiff import DeepSearch

obj = ['long somewhere','string',0,'somewhere great!']

# 使用正则表达式
item = 'some'
ds = DeepSearch(obj,item,use_regexp=True)
print(ds)

# 大小写敏感
item = 'someWhere'
ds = DeepSearch(obj,item,case_sensitive=True)
print(ds)

item = 'some'
ds = DeepSearch(obj,item,case_sensitive=True)
print(ds)

# 强校验
item = 0
ds = DeepSearch(obj,item,strict_checking=True)
print(ds)

item = "0"
ds = DeepSearch(obj,item,strict_checking=True)
print(ds)